<?php

class CategoryModel extends Model {

    /**
     * 获取所有的分类
     */
    public function getAllItems() {
        $sql = "SELECT * FROM s_category";
        $row = $this->query($sql);
        return $row;
    }
}
